package com.io.utils.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * The class/interface 自定义jwt的token
 *
 * @author guod
 * @version 1.0 use jdk 1.8
 */
public class JwtToken implements AuthenticationToken {
    private static final long serialVersionUID = -8451637096112402805L;
    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
